<template>
  <div class="stat-group">
    <div class="icon-stat">
      <div class="icon" />
      <div class="infos">
        <div class="wrap-1">
          <span class="number">{{ datas.stat.value }}</span>
          <span class="unit">{{ datas.stat.unit }}</span>
        </div>
        <div class="wrap-2">
          {{ datas.stat.title }}
        </div>
      </div>
    </div>
    <div class="wrap-stat">
      <div v-for="(item) in datas.wrap" :key="item.title" class="wrap-item">
        <div class="title">
          {{ item.title }}
        </div>
        <div class="number">
          {{ item.value }}
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
// eslint-disable-next-line no-undef
defineProps({
  datas: {
    type: Object,
    default: () => ({
      stat: {},
      wrap: [],
    }),
  },
});
</script>

<style lang="less" scoped>
@import "./index.less";
</style>